home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / sync / xsdk_241.zip / XSDKVARS.C < prev   
C/C++ Source or Header  |  1995-12-13  |  4KB  |  94 lines

  1. /* XSDKVARS.C */
  2.  
  3. #include <time.h>
  4. #include <stdio.h>
  5. #include "xsdkdefs.h"
  6.  
  7. #ifndef GLOBAL
  8. #define GLOBAL
  9. #endif
  10.  
  11. /*******************************/
  12. /* Global Variable Definitions */
  13. /*******************************/
  14. GLOBAL char     lncntr;             /* Line counter */
  15. GLOBAL char     tos;                /* Top of screen */
  16. GLOBAL uchar    curatr;             /* Current attribute */
  17. GLOBAL char     mnehigh,            /* Colors for mnemonics */
  18.                 mnelow;
  19. GLOBAL uchar    sys_nodes,            /* Number of nodes on system */
  20.                 node_num;            /* Current node number */
  21. GLOBAL ulong    node_misc;            /* Misc. node toggles */
  22. GLOBAL char     sys_name[41],        /* System name */
  23.                 sys_id[9],            /* System QWK ID */
  24.                 sys_op[41],         /* System operator name */
  25.                 sys_guru[41];        /* System guru name */
  26. GLOBAL ushort    timeleft;            /* Time left in seconds */
  27. GLOBAL char     ctrl_dir[128],        /* SBBS dirs */
  28.                 data_dir[128],
  29.                 node_dir[128],
  30.                 exec_dir[128],
  31.                 text_dir[128],
  32.                 temp_dir[128];
  33. GLOBAL uint     user_number;        /* User's number */
  34. GLOBAL char     user_name[45],        /* User's name/alias */
  35.                 user_misc,            /* User's misc settings */
  36.                 user_rows,            /* User's rows per screen */
  37.                 user_level,         /* User's main level */
  38.                 user_flags1[27],    /* User's flag set #1 */
  39.                 user_flags2[27],    /* User's flag set #2 */
  40.                 user_flags3[27],    /* User's flag set #3 */
  41.                 user_flags4[27],    /* User's flag set #4 */
  42.                 user_exempt[27],    /* User's exemptions */
  43.                 user_rest[27],        /* User's restrictions */
  44.                 user_sex,            /* User's sex */
  45.                 user_birth[9],        /* User's birthday */
  46.                 user_phone[13],     /* User's phone number */
  47.                 user_address[31],    /* User's address */
  48.                 user_location[31],    /* User's location */
  49.                 user_zipcode[11],    /* User's zip/postal code */
  50.                 user_realname[26];    /* User's real name or company name */
  51. GLOBAL ulong    user_cdt,            /* User's credits */
  52.                 user_dce;            /* User's DCE rate */
  53. GLOBAL time_t    user_expire;        /* User's expiration date */
  54.  
  55.                                     /* COM port registers: */
  56. GLOBAL uint     com_base,            /* COM base address */
  57.                 com_irq;            /* irq line number       */
  58. GLOBAL ulong    com_rate;            /* DTE rate in bps       */
  59. GLOBAL char      com_port;            /* Number of COM port  */
  60.  
  61.                                     /* Modem command strings */
  62. GLOBAL char     mdm_init[64],        /* Initialization */
  63.                 mdm_spec[64],        /* Special Initialization */
  64.                 mdm_term[64],        /* Terminal Initialization String */
  65.                 mdm_dial[64],        /* Dial */
  66.                 mdm_offh[64],        /* Off hook */
  67.                 mdm_answ[64],        /* Answer */
  68.                 mdm_misc;           /* Misc bits used for flags */
  69.  
  70. GLOBAL time_t    starttime;            /* Start time-stamp */
  71. GLOBAL char     wordwrap[81];        /* Wordwrap buffer */
  72. GLOBAL uint     sec_warn,            /* Seconds till inactivity warning */
  73.                 sec_timeout;        /* Seconds till disconnect */
  74.  
  75. GLOBAL int        nodefile;            /* File descriptor for NODE.DAB */
  76.  
  77. GLOBAL char     slbuf[SAVE_LINES][LINE_BUFSIZE+1]; /* Saved for redisplay */
  78. GLOBAL char     slatr[SAVE_LINES];    /* Starting attribute of each line */
  79. GLOBAL char     slcnt;            /* Number of lines currently saved */
  80. GLOBAL char     lbuf[LINE_BUFSIZE];/* Temp storage for each line output */
  81. GLOBAL int        lbuflen;        /* Number of characters in line buffer */
  82. GLOBAL char     latr;           /* Starting attribute of line buffer */
  83. GLOBAL uint     inDV;            /* DESQview version if running under DV */
  84. GLOBAL int        keybuftop,keybufbot;    /* Keyboard input buffer pointers */
  85. GLOBAL char     keybuf[KEY_BUFSIZE];    /* Keyboard input buffer */
  86. GLOBAL uint far *msr;            /* Last modem status register contents */
  87. GLOBAL char     **xtrn;         /* List of external program names */
  88. GLOBAL uint     total_xtrns;    /* Total number of external programs */
  89. GLOBAL uchar    lastnodemsg;    /* Last node to send a message to */
  90. GLOBAL uchar    name_len;        /* Length of name field in NAME.DAT */
  91. GLOBAL char     aborted;        /* Aborted flag - if ctrl-c hit */
  92. GLOBAL uint     sysop_level;    /* Sysop Level */
  93. GLOBAL FILE     *con_fp;        /* Console file pointer (stdout/stderr) */
  94.